import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
import { ConfigProvider } from 'antd'

// antd国际化语言块
import zhCN from 'antd/lib/locale/zh_CN'

// 测试 import * as xxx from '路径'
// import name, { saveToken, getToken, removeToken } from '@/utils/token'
// import name from '@/utils/token'
// console.log(saveToken)
// console.log(getToken)
// console.log(removeToken)
// console.log(name)

// import * as obj from '@/utils/token'
// console.log(obj.default)
// console.log(obj.saveToken)
// console.log(obj.getToken)
// console.log(obj.removeToken)

ReactDOM.render(
  // <React.StrictMode>
  <ConfigProvider locale={zhCN}>
    <App />
  </ConfigProvider>,
  // </React.StrictMode>,
  document.getElementById('root')
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
